package cn.wolfcode.business.mapper;

import cn.wolfcode.business.domain.BusServiceItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 服务项Mapper接口
 *
 * @author wolfcode
 * @date 2025-09-19
 */
@Mapper
public interface BusServiceItemMapper {
    //查询服务项
    public BusServiceItem selectBusServiceItemById(Long id);

    //查询服务项列表
    public List<BusServiceItem> selectBusServiceItemList(BusServiceItem busServiceItem);

    //添加服务项
    public int insertBusServiceItem(BusServiceItem busServiceItem);

    //修改服务项
    public int updateBusServiceItem(BusServiceItem busServiceItem);

    //批量删除服务项
    public int deleteBusServiceItemByIds(Long[] ids);

    //修改上下架状态
    int changeSaleStatus(@Param("id") Long id, @Param("status") Integer salestatusOn);

    //修改审批状态
    int changeAuditStatus(@Param("id") Long serviceItemId, @Param("status") Integer auditstatusAuditing);
}
